<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>

</html>
<script>
   let num2 = prompt("请输入你要叠多少次？") 
   let num3 = prompt("请输入你要叠的数字？") 
   let zongshu = 0
   let shu = 0
   if(num3<=9&&num3>=1){
       for(let i = 0;i<num2;i++){
           shu = shu*10+num3*1
           zongshu = zongshu+shu
       }
   }
   console.log(zongshu)

</script>